package com.lingxu.module.redList.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lingxu.base.system.common.entity.SysLog;
import com.lingxu.module.redList.entity.CompareRedList;
import com.lingxu.module.redList.entity.ParamsDTO;
import com.lingxu.module.redList.entity.RedList;
import com.lingxu.module.redList.entity.RedListApply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Title: RedListMapper
 * @Package: com.lingxu.module.redList.mapper
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/6/15 14:54
 * @Description:
 * @Version: 1.0.0
 */
@Mapper
public interface RedListMapper extends BaseMapper<RedList> {

    IPage<RedList> findRedList(@Param("dto") ParamsDTO dto,@Param("listPage") Page<RedList> listPage);

    List<RedList> openFindRedListApi(String keyWord);

    List<RedList> findListAll(String cityCode);

    IPage<SysLog> findRedListLog(@Param("startTime") String startTime, @Param("endTime") String endTime,
                                 @Param("logPage") Page<SysLog> logPage,@Param("type") String type);

    List<CompareRedList> compareToRedList();

    IPage<RedListApply> findRedApplyList(@Param("dto") ParamsDTO dto, @Param("listPage") Page<RedListApply> listPage);

    int findExistByIdCard(String idcard);

    IPage<RedList> findRedListExcel(Page<RedList> listPage);

    IPage<RedListApply> findNeedApprovalList(@Param("applyPage") IPage<RedListApply> applyPage);

}
